package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 成果附件
 * </p>
 *
 * @author cy
 * @since 2020-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class AAccessory extends Model<AAccessory> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "accessory_id", type = IdType.AUTO)
    private Integer accessoryId;

    @JsonProperty("aId")
    private Integer aId;

    private String accessoryName;


    @Override
    protected Serializable pkVal() {
        return this.accessoryId;
    }

}
